package com.tlgen.modules.drugstore.repository;

import com.tlgen.modules.drugstore.domain.MedicinalSort;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @author: tlgen
 * @Discription: 药品分类持久层
 */
public interface MedicinalSortRepository extends JpaRepository<MedicinalSort, Long>, JpaSpecificationExecutor<MedicinalSort> {

    /**
     * 根据名称查询
     * @param medicinalSortName
     * @return
     */
    MedicinalSort findByMedicinalSortName(String medicinalSortName);

}
